package com.yutel.system.struts.core;

import java.util.List;

public class Page {
	/** 总记录数 */
	private int totalProperty;
	
	/** 分页结果 */
	private List<?> root;

	/** 开始页码 */
	private int start;
	/** 结束页码 */
	private int end;
	/** 每页多少 */
	private int limit;

	/** 成功与否 */
	private boolean success;
	
	/** 查询条件 */
	private Object conditions;
	/**
	 * 是否启用过扰查询
	 */
	private String hasFilter;
	private String hasFilter2;
	private Integer managerType;
	
	private Long id;
	
	private String querySplit;
	
	public Page() {
	}

	public Page(Object conditions) {
		this.conditions = conditions;
	}

	public Page(int start, int limit) {
		this.start = start;
		this.limit = limit;
	}

	public Page(int start, int limit, Object conditions) {
		this.start = start;
		this.limit = limit;
		this.conditions = conditions;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public List<?> getRoot() {
		return root;
	}

	public void setRoot(List<?> root) {
		this.root = root;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public int getTotalProperty() {
		return totalProperty;
	}

	public void setTotalProperty(int totalProperty) {
		this.totalProperty = totalProperty;
	}

	public Object getConditions() {
		return conditions;
	}

	public void setConditions(Object conditions) {
		this.conditions = conditions;
	}

	public int getEnd() {
		return end;
	}

	public void setEnd(int end) {
		this.end = end;
	}

	public String getHasFilter() {
		return hasFilter;
	}

	public void setHasFilter(String hasFilter) {
		this.hasFilter = hasFilter;
	}

	public String getQuerySplit() {
		return querySplit;
	}

	public void setQuerySplit(String querySplit) {
		this.querySplit = querySplit;
	}

	public String getHasFilter2() {
		return hasFilter2;
	}

	public void setHasFilter2(String hasFilter2) {
		this.hasFilter2 = hasFilter2;
	}

	public Integer getManagerType() {
		return managerType;
	}

	public void setManagerType(Integer managerType) {
		this.managerType = managerType;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
